package net.csdn.business.common.domain.mirror;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddMirrorImportDataDTO {
    List<Info> imports;
    @NotBlank(message = "creator 不能为空")
    private String creator;
    @NotBlank(message = "userId 不能为空")
    private String userId;
    private String token;
    private int type = 0;
    private boolean skipBlack = false;
    private Integer isSync=0;
    private long id = 0l;

    /**
     * repoPath: vuejs/vue
     * fullPath: xjm/vue_import
     * description: ''
     * visibilityLevel: 0 私有 20 公开
     * orgId: 目标组织id
     * orgName: ''
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Info {
        private String repoPath;
        private String fullPath;
        private String description;
        private Long visibilityLevel = 20L;
        private String orgId;
        private String orgName;
    }
}